package com.day0914;

import java.util.Scanner;

public class Text4 {
    public static void main(String[] args) {
        //5个班5名学生
        Scanner in = new Scanner(System.in);
        int[][] scores = new int[5][5];
        for (int i = 0; i < scores.length; i ++){
            int sum = 0;
            System.out.println("第" + (i+1) + "个班的学生成绩：");
            for (int j = 0; j < scores[i].length; j ++){
                System.out.print("第" + (j+1) + "个学生的成绩：");
                scores[i][j] = in.nextInt();
                sum += scores[i][j];
            }
            System.out.println("第" + (i+1) + "个班的总成绩为：" + sum);
        }
    }
}
